package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SoftSystem;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLBigDecimalTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SoftSystemProxy extends AbstractProxyEntity<SoftSystemProxy, SoftSystem> {

    private static final Class<SoftSystem> entityClass = SoftSystem.class;

    public static final SoftSystemProxy TABLE = createTable().createEmpty();

    public static SoftSystemProxy createTable() {
        return new SoftSystemProxy();
    }

    public SoftSystemProxy() {
    }

    /**
     * 体系ID
     * {@link SoftSystem#getSystemId}
     */
    public SQLStringTypeColumn<SoftSystemProxy> systemId() {
        return getStringTypeColumn("systemId");
    }

    /**
     * 体系名称
     * {@link SoftSystem#getSystemName}
     */
    public SQLStringTypeColumn<SoftSystemProxy> systemName() {
        return getStringTypeColumn("systemName");
    }

    /**
     * 序号
     * {@link SoftSystem#getSystemSeq}
     */
    public SQLBigDecimalTypeColumn<SoftSystemProxy> systemSeq() {
        return getBigDecimalTypeColumn("systemSeq");
    }

    /**
     * 用户页布局, 使用wpf的grid语法, 行定义和列定义用|分割(数字)代表固定值, ()和(数字)代表比例和填充, Auto代表自适应,下边例子中,行高度是[自动,2倍填充, 30],列宽度是[100, 1倍填充, 自动]Auto 2 30 | 100  Auto
     * {@link SoftSystem#getUserPage}
     */
    public SQLStringTypeColumn<SoftSystemProxy> userPage() {
        return getStringTypeColumn("userPage");
    }

    /**
     * 关联的子系统ID
     * {@link SoftSystem#getAppId}
     */
    public SQLStringTypeColumn<SoftSystemProxy> appId() {
        return getStringTypeColumn("appId");
    }

    @Override
    public Class<SoftSystem> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SoftSystemProxyFetcher FETCHER = new SoftSystemProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SoftSystemProxyFetcher extends AbstractFetcher<SoftSystemProxy, SoftSystem, SoftSystemProxyFetcher> {

        public SoftSystemProxyFetcher(SoftSystemProxy proxy, SoftSystemProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * 体系ID
         * {@link SoftSystem#getSystemId}
         */
        public SoftSystemProxyFetcher systemId() {
            return add(getProxy().systemId());
        }

        /**
         * 体系名称
         * {@link SoftSystem#getSystemName}
         */
        public SoftSystemProxyFetcher systemName() {
            return add(getProxy().systemName());
        }

        /**
         * 序号
         * {@link SoftSystem#getSystemSeq}
         */
        public SoftSystemProxyFetcher systemSeq() {
            return add(getProxy().systemSeq());
        }

        /**
         * 用户页布局, 使用wpf的grid语法, 行定义和列定义用|分割(数字)代表固定值, ()和(数字)代表比例和填充, Auto代表自适应,下边例子中,行高度是[自动,2倍填充, 30],列宽度是[100, 1倍填充, 自动]Auto 2 30 | 100  Auto
         * {@link SoftSystem#getUserPage}
         */
        public SoftSystemProxyFetcher userPage() {
            return add(getProxy().userPage());
        }

        /**
         * 关联的子系统ID
         * {@link SoftSystem#getAppId}
         */
        public SoftSystemProxyFetcher appId() {
            return add(getProxy().appId());
        }

        @Override
        protected SoftSystemProxyFetcher createFetcher(SoftSystemProxy cp, AbstractFetcher<SoftSystemProxy, SoftSystem, SoftSystemProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SoftSystemProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
